#include-once

init_config()

Func init_config()
Global $filter = IniRead("config.ini","Options","filter","error")
If $filter = "error" Then
	$filter = ""
EndIf

Global $promiscuous = IniRead("config.ini","Options","promiscuous","error")
If $promiscuous = "error" Then
	$promiscuous = 0
EndIf

Global $packetlen = IniRead("config.ini","Options","packetlen","error")
If $packetlen = "error" Then
	$packetlen = 65536
EndIf

Global $buffersize = IniRead("config.ini","Options","buffersize","error")
If $buffersize = "error" Then
	$buffersize = 0
EndIf

Global $realtime = IniRead("config.ini","Options","realtime","error")
If $realtime = "error" Then
	$realtime = 1
EndIf
EndFunc